# image:label
#FROM yangbuyi-admin
## 维护描述
#MAINTAINER 维护描述
## Path Name
#WORKDIR /root/jar
## 源文件地址: 复制的目标地址
#ADD test.gz  /
## 标签
#LABEL version = 1.0
#LABEL desc = demo
## 环境变量
#ENV JAVA_HOME /usr/local/openjdk11
#RUN ${JAVA_HOME}/bin/java -jar test.js


FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER yangs

RUN mkdir -p /cmtc/yangbuyi-admin

WORKDIR /cmtc/yangbuyi-admin

EXPOSE 9735

ADD ./target/yangbuyi-admin.jar ./app.jar

ENTRYPOINT ["java","-Xmx600m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]

CMD ["--spring.profiles.active=${PROFILES_ACTIVE}"]

